import React, { Suspense, lazy } from 'react';
import { HashRouter as Router, Route, Switch, Link } from 'react-router-dom';

const AuthRoute = lazy(() => import('./AuthRoute.jsx'));

const IndexView = lazy(() => import('@pages/Index'));


//loginMask 选直接到index.html写一下样式哈

const MyRouter = () => (
    <Router>
        <Suspense fallback={<div className="loadingMask"></div>}>
            {/* <TopHeader /> */}
            <Switch>
                <AuthRoute path='/' component={IndexView} />
            </Switch>
        </Suspense>
    </Router>
);

export default MyRouter;